package com.hunk.excel.ValidatorAndProcessor;

import java.util.Map;

import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.stereotype.Component;

import com.hunk.excel.Processor;
import com.hunk.excel.ProcessorChain;
/** 自定义处理器
 * @author admin
 *
 */
@Component
public class TelProcessor extends Processor {

	@Override
	public String process(HSSFWorkbook hssfWorkbook, HSSFSheet hssfSheet,
			HSSFRow hssfRow,HSSFCell hssfCell, Map<String, String> entity, String stringValue,
			ProcessorChain chain) {
		if ("15921276637".equals(stringValue)) {
			stringValue = "159...6637";
		}
		return chain.process(hssfWorkbook, hssfSheet, hssfRow, hssfCell, entity, stringValue, chain);
	}

}
